i = 0
while i < 9:
    i += 1
    j = 0
    while j < 9:
        j += 1
        if j < i:
            print(f"{i} * {j} = {i * j}\t", end="")
        elif j == i:
            print(f"{i} * {j} = {i * j}", end="")

    print()

# i = 0
# while i < 9:
#     i += 1
#     j = 0
#     while j <= i:
#         j += 1
#         print(f"{i} * {j} = {i * j}\t", end="")
#     print()
